package com.medical.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.medical.system.model.bo.RouteBO;
import com.medical.system.model.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 获取路由列表
     * @return
     */
    List<RouteBO> listRoutes(Long userId);

    /**
     * 获取菜单列表
     * @param queryWrapper
     * @return
     */
    List<SysMenu> getMenuList(@Param(Constants.WRAPPER) Wrapper<SysMenu> queryWrapper);
}
